/*
 * 作者: 黄伟
 * 时间: 2017-02-17
 * 说明：
 * Copyright (c) 2016-2017 中研沃兮
 */
define(function(require) {

	require("jquery");

	var c = require('app/utils/CommonUtils');
	var appInfo = require('app/AppInfo');
	var EventUtils = require('app/utils/EventUtils');
	var APIUtils = require('app/utils/APIUtils');
	
	$("#title").text("我的直播间");
	
	$("#back").click(function(){
		api.closeWin({
        });
	});
	var param = api.pageParam;
	
	var header_h = $("#header").height();
	
	function launchMyRoomFrm(){
		var name = "IndexMeMyRoomFrm";
		api.openFrame({
	        name: name,
	        url: './'+name+".html",
	        rect: {
		        x:0,
		        y:header_h,
		        w:APIUtils.winW(),
		        h:APIUtils.winH() - header_h
	        },
	        pageParam: param,
	        reload:true
        });
	}
	
	EventUtils.listen(api.winName, 'refresh_my_room', false, function(data){
		launchMyRoomFrm();
	});
	
	launchMyRoomFrm();
	

	return;
});